package com.wayhome.springframework.test;

import java.util.HashMap;
import java.util.Map;

public class UserDao {
    public static Map<String, String> userMap = new HashMap<>();

    static {
        userMap.put("10001", "朱元璋");
        userMap.put("10002", "朱允炆");
        userMap.put("10003", "朱瞻基");
    }

    public String queryUserName(String userId) {
        return userMap.get(userId);
    }
}
